#pragma once

class MyArray
{
private:
        int m_length;
        int *m_space;

public:
        MyArray(int length);
        MyArray(const MyArray &obj);
        ~MyArray();

public:
        void setData(int index, int value);
        int getData(int index);
        int length();

public:
        //重载[]
        int& operator[](int i);
        //重载=
        MyArray& operator=(MyArray &obj);
        //重载==
        bool operator==(MyArray &obj);
        //重载!=
        bool operator!=(MyArray &obj);
};